package org.dtrd.modules.suggest.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.suggest.entity.po.DtrdEntRdSigninRecordSuggest;
import java.util.Date;

/**
 * <p>
 * 打卡记录建议表
 * </p>
 *
 * @author sun
 * @since 2022-08-03
 */
@Getter
@Setter
@ApiModel(value = "打卡记录建议表详情")
public class SigninRecordSuggestDetail {

    private Integer dataId;

    @ApiModelProperty("打卡项目:1 血糖；2血压；3运动；4用药；5 饮食；6 体重；7腰围；8尿酮；9 胰岛素；10睡眠")
    private Integer signinType;

    @ApiModelProperty("打卡日期")
    private String recordDate;

    @ApiModelProperty("打卡记录id")
    private Integer recordId;

    @ApiModelProperty("患者id")
    private Integer patientId;

    @ApiModelProperty("医生id")
    private Integer suggestDoctorId;

    @ApiModelProperty("建议")
    private String suggest;

    @ApiModelProperty("评分，多个评分项按,分隔")
    private String score;

    @ApiModelProperty("保存到模板，0-否，1-是")
    private Integer saveToTemplate;

    @ApiModelProperty("机构")
    private String orgCode;



    public SigninRecordSuggestDetail parseFromPo(DtrdEntRdSigninRecordSuggest po) {
        dataId = po.getDataId();
        signinType = po.getSigninType();
        recordDate = po.getRecordDate();
        recordId = po.getRecordId();
        patientId = po.getPatientId();
        suggestDoctorId = po.getSuggestDoctorId();
        suggest = po.getSuggest();
        score = po.getScore();
        return this;
    }
}
